package com.sebscape.sebcms.strutssupport;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import ognl.OgnlRuntime;

//imports

public class InitListener implements ServletContextListener, HttpSessionListener, HttpSessionAttributeListener {

 public InitListener()  { 
 }

 @Override
 public void contextInitialized(ServletContextEvent sce)  {
     OgnlRuntime.setSecurityManager(null);
 }
 // ... all other methods stubbed out to do nothing

/* (non-Javadoc)
 * @see javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.ServletContextEvent)
 */
@Override
public void contextDestroyed(ServletContextEvent arg0) {
	// TODO Auto-generated method stub
	
}

/* (non-Javadoc)
 * @see javax.servlet.http.HttpSessionAttributeListener#attributeAdded(javax.servlet.http.HttpSessionBindingEvent)
 */
@Override
public void attributeAdded(HttpSessionBindingEvent arg0) {
	// TODO Auto-generated method stub
	
}

/* (non-Javadoc)
 * @see javax.servlet.http.HttpSessionAttributeListener#attributeRemoved(javax.servlet.http.HttpSessionBindingEvent)
 */
@Override
public void attributeRemoved(HttpSessionBindingEvent arg0) {
	// TODO Auto-generated method stub
	
}

/* (non-Javadoc)
 * @see javax.servlet.http.HttpSessionAttributeListener#attributeReplaced(javax.servlet.http.HttpSessionBindingEvent)
 */
@Override
public void attributeReplaced(HttpSessionBindingEvent arg0) {
	// TODO Auto-generated method stub
	
}

/* (non-Javadoc)
 * @see javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent)
 */
@Override
public void sessionCreated(HttpSessionEvent arg0) {
	// TODO Auto-generated method stub
	
}

/* (non-Javadoc)
 * @see javax.servlet.http.HttpSessionListener#sessionDestroyed(javax.servlet.http.HttpSessionEvent)
 */
@Override
public void sessionDestroyed(HttpSessionEvent arg0) {
	// TODO Auto-generated method stub
	
}
 
} 